package com.zyl.courseservice.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author 略
 * @since 2020-12-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="TCourse对象", description="课程")
public class TCourse implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键id")
    @TableId(value = "course_id", type = IdType.AUTO)
    private int courseId;

    @ApiModelProperty(value = "课程名称")
    private String courseName;

    @ApiModelProperty(value = "年级号")
    private int gradeId;

    @ApiModelProperty(value = "任课老师ID")
    private int userId;

    @ApiModelProperty(value = "剩余可选数量")
    private int leftNum;

    @ApiModelProperty(value = "星期几")
    private String classWeek;

    @ApiModelProperty(value = "第几节")
    private String classTime;

    @ApiModelProperty(value = "上课地点")
    private String location;

    @ApiModelProperty(value = "课程状态(-1未审核，0审核未通过，1审核通过)")
    private Integer courseStatus;

    @ApiModelProperty(value = "课程简介")
    private String classInfor;

    @ApiModelProperty("创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty("更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
}
